package com.p2p.controller.repaymentMangement;

import com.p2p.common.R;
import com.p2p.common.ResultDTO;
import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class RepaymentController {


    @ApiOperation(value = "显示所有的还款信息", notes = "显示所有的还款信息", httpMethod = "GET", response = R.class)
    @ApiResponses({
            @ApiResponse(code = 200, message = "登录成功"),
            @ApiResponse(code = 400, message = "代表参数格式不对"),
            @ApiResponse(code = 404, message = "代表找不到此请求"),
            @ApiResponse(code = 500, message = "代表后端代码出现异常"),
    })
    @ApiImplicitParams({
            @ApiImplicitParam(name = "currentPage", value = "当前页码数默认第一页", paramType = "query", dataType = "String", required = true),
            @ApiImplicitParam(name = "pageSize", value = "每页显示记录数", paramType = "query", dataType = "String", required = true)
    })
    @GetMapping(value = "/findAllRepaymentMange")
    @ResponseBody
    public R findAllRepaymentMange(Integer currentPage, Integer pageSize) {
        return null;
    }

    @GetMapping(value = "/testAllRepaymentMange")
    @ResponseBody
    public ResultDTO testAllRepaymentMange(Integer currentPage, Integer pageSize) {
        ResultDTO success = ResultDTO.success();
        success.add("data", "123").add("data1", "123").add("data2","123");
        return success;
    }


}
